class CreateTemas < ActiveRecord::Migration
  def self.up
    create_table "temas", :force => true do |t|
      t.column "direccion", :string
      t.column "titulo", :string
      t.column "ultima_actualizacion", :string
      t.column "foro_id", :integer
      t.column "habilitar", :boolean, :default => true
      t.column "updated_at", :datetime
      t.column "tema_size", :integer, :limit => 8
      t.column "created_at", :datetime
    end

    add_index "temas", ["direccion"], :name => "temas_direccion_index", :unique => true
  end

  def self.down
    remove_index "temas", "direccion"

    drop_table "temas"
  end
end
